<!--  -->
<template>
  <div>
     <van-collapse v-for="(item,index) in peopledata" :key="index"  v-model="item.display">
        <van-collapse-item name="1">
            <template #title>
            <div>{{item.name}} </div>
            </template>
             <van-cell v-for="(item2,index2) in item.childrenList" :key="index2">
                 <div>{{item2.name}}</div>
            </van-cell>
        </van-collapse-item>
    </van-collapse>

  </div>
</template>

<script>
  export default {
    components: {

    },
    data() {
       return {
           peopledata:[],
           params:this.$route.params,
           activeNames: ['1'],
       }
    },
    //生命周期--创建完成
    created() {
        this.peopledata = this.params.peopledata;
        console.log('people数据'+JSON.stringify(this.peopledata))
    },
    //生命周期--挂载完成
    mounted() {

    },
    //方法调用
    methods: {

    }
  }
</script>
<style  scoped>
/* @import url();*/
</style>